package conson.tech.manage.coupons.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import conson.tech.manage.coupons.entity.dto.ActivityPageDto;
import conson.tech.manage.coupons.entity.pojo.Activity;
import conson.tech.manage.coupons.entity.pojo.OperationLog;
import conson.tech.manage.coupons.entity.vo.ActivityPageVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * InterfaceName: ActivityMapper
 * Description:
 * Author: ZYF
 * Date: 2020/7/20
 * Version: 1.0
 */
@Repository
public interface ActivityMapper extends BaseMapper<Activity> {

    /**
     * 分页获取领券活动列表信息
     *
     * @param page
     * @param dto
     * @return  com.baomidou.mybatisplus.extension.plugins.pagination.Page<conson.tech.manage.coupons.entity.dto.ActivityPageDto>
     */
    Page<ActivityPageVo> couponActivityList(Page<ActivityPageVo> page, @Param("dto") ActivityPageDto dto);

    /**
     * 查询所有活动信息
     *
     * @return  java.util.List<conson.tech.manage.coupons.entity.pojo.Activity>
     */
    List<Activity> selectActivityList();
}
